home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_oth / mawk10 / makefile < prev    next >
Makefile  |  1991-10-05  |  661b  |  31 lines

  1.  
  2. ####################################
  3. # This is a makefile for mawk,
  4. # an implementation of AWK (1988).
  5. ####################################
  6. #
  7. #
  8. # This builds a regular expression library
  9. # Remove the -DMAWK and the library has general use.
  10. #
  11.  
  12. CC = cc
  13. CFLAGS = -O  -DMAWK
  14. RANLIB = ranlib
  15.  
  16. ###################
  17. #  if you don't have strchr()
  18. #CFLAGS = -O -DMAWK -Dstrchr=index
  19. ###########################
  20.  
  21.  
  22. C=rexp.c rexp0.c rexp1.c rexp2.c rexp3.c rexpdb.c
  23.  
  24. regexp.a : $(C)
  25.     rm -f *.o
  26.     $(CC) -c $(CFLAGS) $?
  27.     ar r regexp.a *.o
  28.     if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then\
  29.           $(RANLIB) regexp.a ; else true ; fi
  30.     rm -f *.o
  31.